<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head >
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>DreStarting-首页</title>

    <!--    抽取公共头部-->
    <div th:replace="share/common :: head"></div>

</head>
<body>

<!--    抽取公共导航-->
<div th:replace="share/common :: menu(1)"></div>




<!--顶部图片-->
<div class="m-bg-class_outer" style="width: 100%;height: 750px">
    <img src="../static/images/bg.jpg" th:src="@{/images/bg.jpg}" alt="" class="ui m-bg image" style="width: 100%;height: 100%">
    <div class="m-bg-class_cover" align="center">
        <div class="m-margin-top-maxx" align="center">
            <img class="ui circular image" align="center" id="waypoint" src="../static/images/me.jpg" th:src="@{/images/me.jpg}" style="width: 150px;height: 150px;">
        </div>
        <div class="m-font-size-title-large" align="center">DreStarting</div>

        <!--    抽取公共个人资料    -->
        <div th:replace="share/common :: #person_data"></div>

        <h3 class="m-font-size-text" align="center">欢迎来到我的站点，我是漫天繁星中微弱的那一颗</h3>
        <hr style="width: 30%">
        <h5 class="m-font-size-text-init-title m-margin-top-large">“时光匆匆如旅”</h5>
        <h5 class="m-font-size-text-init-title">“幸福，在耳边低语”</h5>
        <h5 class="m-font-size-text-init-title">“努力，不停下足迹”</h5>
        <h5 class="m-font-size-text-init-title">“直到，走遍半生四季”</h5>
        <div class="ui m-margin-top-large" align="center">
            <a href="#" th:href="@{/}" class="active ui circular icon button m-opacity-small m-item item m-mobile-hide m-index-btn" ><i class="home icon"></i>首页</a>
            <a href="#" th:href="@{/types/-1}" class="ui circular icon button m-opacity-small m-item item m-mobile-hide m-index-btn" ><i class="clone outline icon"></i>分类</a>
            <a href="#" th:href="@{/time}" class="ui circular icon button m-opacity-small m-item item m-mobile-hide m-index-btn" ><i class="clock icon"></i>时间轴</a>
            <a href="#" th:href="@{/music}" class="ui circular icon button m-opacity-small m-item item m-mobile-hide m-index-btn" ><i class="music icon"></i>音乐盒</a>
            <a href="#" th:href="@{/message}" class="ui circular icon button m-opacity-small m-item item m-mobile-hide m-index-btn" ><i class="book icon"></i>留言板</a>
            <a href="#" th:href="@{/friend}" class="ui circular icon button m-opacity-small m-item item m-mobile-hide m-index-btn" ><i class="heart icon"></i>友人帐</a>
            <a href="#" th:href="@{/picture}" class="ui circular icon button m-opacity-small m-item item m-mobile-hide m-index-btn" ><i class="image icon"></i>照片墙</a>
            <a href="#" th:href="@{/about}" class="ui circular icon button m-opacity-small m-item item m-mobile-hide m-index-btn" ><i class="info icon"></i>关于我</a>
        </div>
        <div class="hiddenDiv"></div>
    </div>

</div>



<!--最新推荐-->
<div class="ui m-padded-tb-large">
    <div class="ui m-container-small m-opacity">
        <div class="ui secondary segment " align="center">
            <i class="bookmark icon"></i>最新推荐
        </div>
    </div>
    <div class="ui stackable m-container-mini m-opacity grid">
        <div class="m-margin-tb-tiny four wide column" th:each="recommendBlog:${RecommendBlog}">
            <a href="#" th:href="@{/blog/{blogId}(blogId=${recommendBlog.blogId})}" class="class_outer" target="_blank">
                <img src="../static/images/backimg1.jpg" th:src="@{${recommendBlog.img}}" alt="" class="ui rounded image">
                <span class="class_cover" >
                     <h4 class="m-font-size-blog-text m-margin-tb-tiny" th:text="${recommendBlog.title}">大圣，此去欲何?</h4>
                  </span>
            </a>
        </div>
    </div>
</div>


<!--中间内容-->
<div class="m-padded-tb-big animated fadeIn">
    <div class="ui container">
        <div class="ui stackable grid">
            <!--博客内容-->
            <div class="ui vertical segment">
                <div class="ui m-container-small m-opacity">
                    <div class="ui secondary segment " align="center">
                        <i class="bookmark icon"></i>最新文章
                    </div>
                </div>
                <!--博文列表-->
                <div th:each="blog:${pager.datas}" class="ui padded segment m-padded-tb-large m-opacity">
                    <div class="ui large aligned mobile reversed stackable grid">
                        <!--博文信息-->
                        <div  class="eleven wide column ">
                            <h3 class="ui header" ><a href="#" th:href="@{/blog/{blogId}(blogId=${blog.blogId})}" th:text="${blog.title}" target="_blank" class="m-black">大圣，此去欲何?</a></h3>
                            <p class="m-text m-margin-top-max" th:text="|${blog.description}......|">戴上金箍，没法爱你；放下金箍，没法保护你。我知道上天不会给我第二次机会，曾经我们说好的永远，原来也仅仅只有，十二画，而已。“大圣，此去欲何?”“踏南天，碎凌霄。”“若一去不回……”“便一去不回” 其实很多时候，我们都是有机会的，最后真正放弃的，是我们自己。......</p>
                            <div class="ui m-margin-top-max grid">
                                <div class="eleven wide column">
                                    <div class="ui mini horizontal link list">
                                        <div class="item">
                                            <img src="../static/images/me.jpg" th:src="@{${blog.userImg}}" alt="" class="ui avatar image">
                                            <div class="content"><a href="#" th:href="@{/about}" th:src="@{${blog.nickname}}" target="_blank" class="header" >DreStarting</a></div>
                                        </div>
                                        <div class="item">
                                            <i class="calendar icon"></i><span th:text="${blog.formateTime(blog.update_time)}">2020-01-01</span>
                                        </div>
                                        <div class="item">
                                            <i class="eye icon"></i> <span th:text="${blog.views}">2222</span>
                                        </div>
                                        <div class="item">
                                            <i class="comment icon"></i> <span th:text="${blog.comment_count}">2222</span>
                                        </div>
                                    </div>
                                </div>
                                <div class="right aligned five wide column">
                                    <a target="_blank" th:text="${blog.typesName}" class="ui teal basic label m-padded-tiny m-text-thin">好文</a>
                                </div>
                            </div>
                        </div>
                        <!--博文图片-->
                        <div class="five wide column">
                            <a href="#" target="_blank" th:href="@{/blog/{blogId}(blogId=${blog.blogId})}">
                                <img src="../static/images/backimg1.jpg" th:src="@{${blog.img}}" alt="" class="ui rounded image">
                            </a>
                        </div>

                    </div>
                </div>
            </div>
            <!--分页-->
            <div class="ui bottom attached segment m-opacity stackable grid">
                <div class="three wide column" align="center">
                    <a th:if="${pager.has_pre}" th:href="@{/}" class="item">首页</a>&nbsp;&nbsp;&nbsp;
                    <a th:if="${pager.has_pre}" th:href="@{/(page=${pager.page}-1)}" class="item">上一页</a>
                </div>

                <div class="ten wide column" align="center">
                    <p><span th:text="${pager.page}"></span> / <span th:text="${pager.pages}"></span> </p>
                </div>

                <div class="three wide column" align="center">
                    <a th:if="${pager.has_next}" th:href="@{/(page=${pager.page}+1)}" class="item">下一页</a>&nbsp;&nbsp;&nbsp;
                    <a th:if="${pager.has_next}" th:href="@{/(page=${pager.last})}" class="item">末页</a>
                </div>
            </div>

        </div>
    </div>

</div>

<!--置顶图标-->
<div id="toolbar" class="m-padded m-fixed m-right-bottom" style="display:none">
    <div class="ui vertical icon buttons ">
        <div class="ui center aligned basic segment" style="margin-bottom: 0">
            <button id="payButton" class="ui orange basic circular button">滴滴</button>
        </div>
        <a href="#" class="ui center aligned basic segment icon" style="margin-top: 0"><i class="ui medium orange chevron up icon"></i> </a>
    </div>
</div>

<br>
<br>
<br>
<!--    抽取公共footer    -->
<div th:replace="share/common :: #footer"></div>



<!--    抽取公共js    -->
<div th:replace="share/common :: #js"></div>
</body>
</html>